package jd.client.get;

import jd.client.Response;
import jd.client.exception.ResponseParseException;
import jd.client.util.Parser;

/**
 * @author Denis Migol
 * 
 */
public class GetDownloadsAllCountResponse extends Response {

	private Integer count;

	@Override
	public Response parse(final String response) throws ResponseParseException {
		setCount(Parser.parseCount(response));
		return super.parse(response);
	}

	/**
	 * @param count
	 *            the count to set
	 */
	protected void setCount(final Integer count) {
		this.count = count;
	}

	/**
	 * @return the count
	 */
	public Integer getCount() {
		return count;
	}

}
